<!DOCTYPE html>
<html>
	<head>
		<meta charsest="utf-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		function Animal(){
			this.name = 'fyy';
			this.num = [1,2,3]
		}
		Animal.prototype.getName = function(){
			return this.name
		}
		function Dog(){
			Animal.call(this)
		}
		Dog.prototype = Object.create(Animal.prototype)
		Dog.prototype.constructor = Dog;
	</script>
</html>
